<?php

/**
 * test actions.
 *
 * @package    acap
 * @subpackage test
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class testActions extends sfActions
{

    /**
     * Executes index action
     *
     * @param sfRequest $request A request object
     */
    public function executeIndex(sfWebRequest $request)
    {
        $a = array('1', '2', '3', '4', '5');
        $a[3];

        echo next($a);
        //echo current($a);

        die();
    }

    public function executeTarget(sfWebRequest $request)
    {
        $t = TargetApartamentPeer::getTargetId('2-3-4-5-9', true);

        echo '<pre>';
        print_r($t);
        echo '</pre>';
        die();

        return sfView::NONE;
    }
}
